package com.sanqing.service;

import java.util.List;

import com.sanqing.po.Course;
import com.sanqing.po.Examine;
import com.sanqing.po.Questions;
import com.sanqing.po.Subject;
import com.sanqing.util.Page;
import com.sanqing.util.PageResult;

/**
 * 考试管理业务类
 * 
 * @author shaol
 * 
 */
public interface ExamineService {

	/**
	 * 分页查询考试信息
	 * 
	 * @param page
	 * @param Examine
	 * @return
	 */
	public PageResult queryExamineByPage(Page page, Examine examine);

	/**
	 * 新增考试信息
	 * 
	 * @param Examine
	 */
	public void add(Examine examine);

	/**
	 * 根据条件查询
	 * 
	 * @param id
	 * @return
	 */
	public Examine getById(String id);

	/**
	 * 编辑考试信息
	 * 
	 * @param Examine
	 */
	public void edit(Examine examine);

	/**
	 * 删除考试信息
	 * 
	 * @param id
	 */
	public void delete(String id);
	
	public List<Examine> getList();

	public List<Subject> getSubject(String subjectType, Course course);

	public void customPaper(Examine examine, String[] subjectID);

	public List<Questions> getExamineSubject(String subjectType, Course course);
}
